export default {
	state: {
		currentPlayInfo: {
			id:"",
			name:"",
			albumInfo: "",
			singerInfo: "",
			playInfo: ""
		},
		audioPlayContext: null,
		isPlaying:false,
	},
	mutations: {
		setCurrentPlay(state, params) {
			state.currentPlayInfo = params;
		},
		setAudioPlayContext(state, params) {
			state.audioPlayContext = params;
		},
		tooglePlayStatus(state,params){
			state.isPlaying = params
		}
	},
	actions: {
		handleSaveCurrentPlayInfo({
			commit
		}, params) {
			commit("setCurrentPlay", params)
		},
		handleSaveAudioContext({
			commit
		}, params) {
			commit("setAudioPlayContext", params)
		},
		handleTooglePlayStatus({commit},params){
			commit("tooglePlayStatus",params)
		}
	},
}
